package com.jn.retrofit.service;

import com.jn.retrofit.entity.FoodEntity;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

public interface FoodService {
    @GET("api/za/calories.php")
    Call<ResponseBody> getData(@Query("food")String food);

    @GET("api/za/calories.php")
    Call<FoodEntity> getData2(@Query("food")String food);

    @GET("api/za/calories.php")
    Call<FoodEntity> getData3(@QueryMap Map<String, Object> map);
}
